package com.servlet;

import com.bean.BhRole;
import com.bean.BhUser;
import com.dao.BhSyCaseDao;
import com.dao.impl.BhSyCaseDaoImpl;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.sql.SQLException;
import java.util.List;

@WebServlet("/GoBhSy/*")
public class GoOpenServlet extends BaseServlet{
    BhSyCaseDao bcd = new BhSyCaseDaoImpl();
    //------------------------------------------跳转---------------------------------------------
    public void openWeb(HttpServletRequest request, HttpServletResponse response){
        try {
            request.setCharacterEncoding("utf-8");
            String u = request.getParameter("findU");
            System.out.println(u);
            request.getRequestDispatcher("/WEB-INF/jsp/"+u).forward(request,response);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (ServletException e) {
            e.printStackTrace();
        }
    }

}
